<?php
class ArticleController extends Core\Api{
    public function listsAction() {
        $pid = $this->post('parent_id');
        $article = \Business\ArticleModel::lists($pid);
        $ret = $this->ok($article);
        return $this->json($ret);
    }
    public function detailAction() {
        $aid = $this->post('article_id');
        $article = \Business\ArticleModel::detail($aid);
        $ret = $this->ok($article);
        return $this->json($ret);
    }
}

